﻿using System;
using System.Linq;
using System.Data.Linq;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using CodeSmith.Data.Attributes;
using CodeSmith.Data.Rules;

namespace ezCloud.Data
{
    public partial class Reservations
    {
        // Place custom code here.

        #region Metadata
        // For more information about how to use the metadata class visit:
        // http://www.plinqo.com/metadata.ashx
        [CodeSmith.Data.Audit.Audit]
        internal class Metadata
        {
             // WARNING: Only attributes inside of this class will be preserved.

            public int ReservationId { get; set; }

            public string ReservationCode { get; set; }

            [Now(EntityState.New)]
            [CodeSmith.Data.Audit.NotAudited]
            public System.DateTime CreatedDate { get; set; }

            public int? HotelId { get; set; }

            public int? CompanyId { get; set; }

            public int? SourceId { get; set; }

            public string Color { get; set; }

            public string Note { get; set; }

            public string CreatedUserId { get; set; }

            public int? ReservationNumber { get; set; }

            public int? MarketId { get; set; }

            public string CMBookingId { get; set; }

            public string CMChannelRef { get; set; }

            public double? CommissionPercentage { get; set; }

            public decimal? CommissionFlat { get; set; }

            public bool? CMConfirmed { get; set; }

            public bool? IsGroup { get; set; }

            [DataType(System.ComponentModel.DataAnnotations.DataType.MultilineText)]
            public string GroupName { get; set; }

            public bool? IsEmpty { get; set; }

            public Hotels Hotels { get; set; }

            public Company Company { get; set; }

            public Market Market { get; set; }

            public Source Source { get; set; }

            public EntitySet<ReservationRooms> ReservationRoomsList { get; set; }

        }

        #endregion
    }
}